package com.lintf.flowable.token.enums;

import lombok.Getter;

/**
 * @author lin tingfeng
 * @system Mac
 * @data 2024/7/4 08:54
 * @package_name com.qtone.config.token
 * @project_name ZHXLProject
 * @desc
 */
@Getter
public enum LoginTypeEnum {

    APP_LOGIN(1),
    CLIENT_LOGIN(2);

    private final int type;

    LoginTypeEnum(int type) {
        this.type = type;
    }

    public static boolean contains(int typeToCheck) {
        for (LoginTypeEnum type : LoginTypeEnum.values()) {
            if (type.getType() == typeToCheck) {
                return true;
            }
        }
        return false;
    }

}
